# Author    : CoffeeChicken
# Date      : 2020-10-07 17:43
# Function  : 演示 正则匹配

import requests
from lxml import etree

links = "http://www.ac41.xyz/movie.php?id=7407874516211450"
headers = {
    "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) "
                  "Chrome/85.0.4183.121 Safari/537.36"
}

response_page = requests.get(links, headers).text
# print(response_page)
tree1 = etree.HTML(response_page)
torrent_links = tree1.xpath("//div[@class='download']/p[1]/a/@href")
print(torrent_links)
